import { get, post, put , postJson, putJson } from '../http/request.js'

// 获取用户订单列表
export function getOrderList(userId) {
    return get('/roomReservations/getEnableCancellReservations', { userId })
}

export function createOrder(params){
    return postJson("/roomReservations/createReservation",params)
}
// 支付订单
export function payOrder(params) {
    return put('/roomReservations/payReservation', params)
}

export function getTotalPrice(params){
    return put("/roomReservations/getTotalPrice",params)
}